class CreateEvents < ActiveRecord::Migration
  def change
    create_table :events do |t|
      t.string :ngay
      t.string :ten_su_kien
      t.string :noi_dung
      t.string :danh_gia
      t.references :sinhvien1

      t.timestamps
    end
    add_index :events, :sinhvien1_id
  end
end
